package T;

import java.util.Scanner;

public class sguzu {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        String[] nums=null;
        System.out.println("请输入一组整数，以空格分隔：");
        nums=sc.nextLine().split(" ");
        int num[]=new int[nums.length];
        int sum=0;
        for(int i=0;i<num.length;i++){
            num[i]=Integer.valueOf(nums[i]);
            sum+=num[i];
        }
        System.out.println(sum);

    }
}
